package com.ruoyi.framework.swagger;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * <文件描述>
 *
 * @author jak
 * @version V1.0
 * @date 2021-12-12 10:44
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "app.swagger")
public class SwaggerProperties {
    /**
     * 是否开启Swagger
     */
    private boolean enabled = false;
    /**
     * 要扫描的包
     */
    private List<PackageInfo> packages = new ArrayList<>();

    @Data
    public static class PackageInfo {
        /**
         * 名称
         */
        private String name;
        /**
         * 扫描的包
         */
        private String pack;
    }
}
